namespace NtRuirun.Mes.Wms
{
    /// <summary>
    /// 仓储模块模块
    /// </summary>
    [Description("仓储模块模块")]
    public class WmsPack : PackBase
    {
        /// <summary>将模块服务添加到依赖注入服务容器中</summary>
        /// <param name="services">依赖注入服务容器</param>
        /// <returns></returns>
        public override IServiceCollection AddServices(IServiceCollection services)
        {
            services.AddSingleton<IMapTuple, AutoMapperConfiguration>();
            services.TryAddScoped<IWmsContract, WmsService>();

            return services;
        }

        /// <summary>
        /// 应用模块服务
        /// </summary>
        /// <param name="provider">服务提供者</param>
        public override void UsePack(IServiceProvider provider)
        {
            base.UsePack(provider);
        }
    }
}
